import { defaultSetting, defaultSeries } from '../setting.js';
import custoConfig from '../custom';
function getOpt({
    dataCols = {},
    setting = {}
} = {}) {

    let defaultSet = defaultSetting(dataCols, setting);
    defaultSet.xAxis[0].type = 'value';
    defaultSet.yAxis[0].type = 'category';
    defaultSet.yAxis[0].data = defaultSet.xAxis[0].data;
    defaultSet.xAxis[0].data = [];
    let series = setting.series;
    let seriesData = defaultSeries(dataCols, series);
    let option = {
        ...defaultSet,
        series: seriesData
    };
    return option;
}

export default getOpt